package com.vipboot.run;

import com.vipboot.aot.util.GraalvmUtil;
import com.vipboot.framework.embedded.redis.annotation.EnableEmbeddedRedis;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;

@EnableEmbeddedRedis
@MapperScan(basePackages = {"com.vipboot.**.mapper"}, sqlSessionTemplateRef = "sqlSessionTemplate")
//@SpringBootApplication(scanBasePackages = {"com.vipboot"})
@SpringBootApplication
public class AppRun {

    public static void main(String[] args) throws IOException, InterruptedException {

        GraalvmUtil.changeLanguageGraalvm();

        SpringApplication.run(AppRun.class, args);
    }
}
